<template>
  <!-- 递归测试 -->
  <div>
    <p>测试页000</p>
    <comment v-for="(item,index) in testList" :key="index" :commentList="item" />
    <maps />
  </div>
</template>

<script>
import comment from "@/pages/test/comment";
import maps from "@/pages/test/maps";
export default {
  components: {
    comment,
    maps
  },
  data() {
    return {
      testList: [
        { content: "哪吒" },
        {
          content: "猴子",
          parent: {
            content: "斗战胜佛"
          }
        },
        {
          content: "杨戬",
          parent: {
            content: "二郎神",
            parent: {
              content: "司法天神"
            }
          }
        }
      ]
    };
  }
};
</script>

<style lang="less" scoped>
</style>